FROM ppdeassis/node-nginx-alpine:0.3.0
MAINTAINER li xu cheng "lixucheng@zhigui.com"

RUN mkdir -p /data/www

WORKDIR /app

COPY package.json .
RUN yarn config set registry https://registry.npm.taobao.org && yarn install && yarn cache clean

COPY . .

CMD /bin/sh ./bin/docker-cmd.sh
